from aiogram_dialog import Dialog, Window
from aiogram_dialog.widgets.kbd import Cancel, Start

from dc_shop.tg_bot.dialogs.getters.users import user_info_getter
from dc_shop.tg_bot.dialogs.widgets import LocaleText
from dc_shop.tg_bot.states.user import UserOrdersSG, UserProfileSG

user_profile_window = Window(
    LocaleText("your-account"),
    # LocaleText("your-balance", balance="{user_balance}₽"),
    # LocaleText("your-orders-count", orders_count="{orders_count}"),
    # LocaleText("referrals-count", referral_count="{referral_count}"),
    LocaleText("registered_date", reg_date="{reg_date}"),
    # Start(
    #     LocaleText("enter-promocode-btn"),
    #     id="promocode_btn",
    #     state=PromocodeSG.enter_promocode,
    # ),
    Start(LocaleText("orders-btn"), id="my_orders", state=UserOrdersSG.orders_history),
    Cancel(LocaleText("back-btn")),
    state=UserProfileSG.show_profile,
    getter=user_info_getter,
)

user_profile_dialog = Dialog(
    user_profile_window,
)
